<table class="table-data">
    <tr class="header">
        <th class="col-company">Banks</th>
        <th class="col-date">Date</th>
        <th class="col-cmpa">A</th>
        <th class="col-cmpb">B</th>
        <th class="col-ratio">Ratio</th>
        <th class="col-stddev">STD Dev</th>
        <th class="col-meanra">Mean(Ra)</th>
        <th class="col-sdmean">SD-Mean</th>
        <th class="col-signal">Signal</th>
        <th class="col-spread">Spread</th>
    </tr>
<?php
$arrClass = array('col-company','col-date','col-cmpa','col-cmpb','col-ratio','col-stddev','col-meanra','col-sdmean','col-signal','col-spread');
if (isset($arrCmp)) {
    for ($i = 0; $i < count($arrCmp); $i++) {
        $rowClass = ($i % 2 == 0 ? 'even' : 'odd');
        echo "<tr class='row " . $rowClass . "'>";
        echo "<td class='col-company bluegrad'>" . $arrCmp[$i]['banks']['cmpa'] . " vs " . $arrCmp[$i]['banks']['cmpb'] . "</td>";
        for ($j = 0; $j < count($arrCmp[$i]['datacmp']); $j++) {
            echo "<td class='" . $arrClass[$j+1] . "'>" . (isset($arrCmp[$i]['datacmp'][$j]) && $arrCmp[$i]['datacmp'][$j]!='' ? $arrCmp[$i]['datacmp'][$j] : "-") . '</td>';
        }
        echo '</tr>';
    }
}
?>
</table>